Skip to content

Conversation

@MathiasWP
Copy link
Contributor

@MathiasWP MathiasWP commented Dec 6, 2025

Re-creating these objects every time getCompletionsWithRegardToTriggerCharacter is called is unnecessary. Only creating them once should free up a small bit of memory.

@changeset-bot
Copy link

changeset-bot bot commented Dec 6, 2025

🦋 Changeset detected

Latest commit: 73cb6a9

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
svelte-language-server Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@aewing
Copy link
Contributor

aewing commented Dec 19, 2025

I don't see any reason why we would need to do this dynamically, so this change is moving in a sensible direction. Not much gained from the change though. Plus it feels odd to have these features just inlined here and not imported from some centralized language feature metadata location or something, but that's a larger and separate discussion.

@jasonlyu123 jasonlyu123 merged commit d0562f9 into sveltejs:master Dec 20, 2025
3 checks passed
@github-actions github-actions bot mentioned this pull request Dec 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants